<?php
/* Design by VTEM http://www.vtem.net  All Rights Reserved */
defined( '_JEXEC' ) or die( 'Restricted access' );
include_once(JPATH_ROOT . "/templates/" . $this->template . '/vtemtools/default.php');
include_once(JPATH_ROOT . "/templates/" . $this->template . '/vtemtools/switcher.php');
include_once(JPATH_ROOT . "/templates/" . $this->template . '/vtemtools/css_browser_selector.php');
$pageview = JRequest::getVar('view', '');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" class="<?php echo css_browser_selector() ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/styles/<?php echo $TemplateStyle;?>.css" type="text/css" />
<style>
body{
font-size:<?php echo $this->params->get('Font_Size','12px'); ?>;
font-family:<?php echo $font;?>;
}
<?php
if( $leftwidth == "0" && $rightwidth == "0" && $bodywidth == "0") :
?>
          .navleft,.navright{width:230px;}
		  .navleft1,.navright1{width:280px;}
          .contentwidth{width:454px;}
		  .contentwidth1{width:670px;} 
<?php else : ?>
          .navleft,.navleft1{width:<?php echo $leftwidth;?>;}
		  .navright,.navright1{width:<?php echo $rightwidth;?>;}
          .contentwidth,.contentwidth1{width:<?php echo $bodywidth;?>;} 
<?php
endif;
?>
</style>
<!--[if lte IE 6]>
<script src="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/vtemtools/warning.js"></script>
<script>window.onload=function(){e("<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/images/ie6_warning/")}</script>
<![endif]-->
</head>
<body id="vtem">
<div id="vt_main_header_wapper">
  <div id="vt_main_header">
	 <div id="vt_logo">
	 	<a href="<?php echo $this->baseurl ;?>"><img src="templates/<?php echo $this->template ?>/images/vt_logo_<?php echo $TemplateStyle;?>.png" alt="logo" /></a>
	 </div>
	 <!--ndhoi edit
	 <?php if($this->countModules('user4')) : ?>
	 <div id="vt_search"><jdoc:include type="modules" name="user4" style="none" /></div>
	 <?php endif; ?>-->
	 
	 <div id="sologan_company">
	 	<img src="templates/<?php echo $this->template ?>/images/sologancompany.png" alt="logo" />
	 </div>
	 
	 </div>
	 <div class="clr"></div>
  </div>
</div>
<?php if($this->countModules('menu')) : ?>
<div id="vt_main_menu_wapper">
  <div id="vt_main_menu">
    <jdoc:include type="modules" name="menu" style="none" />
	<div class="clr"></div>
  </div>
</div>
<?php endif; ?>
<div id="vt_main_slide_wapper">
  <div id="vt_main_silder">
   <?php if($this->countModules('slide')) : ?>
    <div id="vt_slider"><span class="vt_news"></span>
     <jdoc:include type="modules" name="slide" style="none" />
    </div>
   <?php endif; ?>
   <?php if($this->countModules('top')) : ?>
    <div id="vt_main_top">
    <jdoc:include type="modules" name="top" style="xhtml" />
    </div>
    <?php endif; ?>
    <div class="clr"></div>
 </div>
</div>
<?php if ($this->countModules('header1 + header2 + header3 + header4 ')) : ?>
<div id="vt_header_module">
   <div id="vt_header_wrapper">
        <?php if ($this->countModules('header1')) { ?>
         <div class="<?php echo $headermodulewidth; ?> <?php echo $headermodsep1; ?> floatleft">
         <jdoc:include type="modules" name="header1" style="xhtml"  />
         </div>
         <?php } ?>
         <?php if ($this->countModules('header2')) { ?>
         <div class="<?php echo $headermodulewidth; ?> <?php echo $headermodsep2; ?> floatleft">
         <jdoc:include type="modules" name="header2" style="xhtml"  />
         </div>
         <?php } ?>
         <?php if ($this->countModules('header3')) { ?>
         <div class="<?php echo $headermodulewidth; ?> <?php echo $headermodsep3; ?> floatleft">
         <jdoc:include type="modules" name="header3" style="xhtml"  />
         </div>
         <?php } ?>	
         <?php if ($this->countModules('header4')) { ?>
         <div class="<?php echo $headermodulewidth; ?>  floatleft">
         <jdoc:include type="modules" name="header4" style="xhtml"  />
         </div>
         <?php } ?>
	     <div class="clr"></div>
	</div>
</div>
<?php endif; ?>
<div id="vt_main_bg">
  <div id="vt_main_items">
   <div id="vt_main_contaner">
     <div id="vt_main_inside">
	  <?php if(($pageview == "wrapper") || ($Layout == "wf")) : ?>
	   <div id="vt_full">
	   <jdoc:include type="component" />
	   </div>
	   <?php else : ?>
	   <?php if($this->countModules('left')) : ?>
	   <div id="vt_left_bg1" class="<?php echo $leftfloat;?>"><div id="vt_left_bg2">
	   <div id="vt_nav_left" class="vt_auto_cols <?php echo $navleft;?>">
	   <jdoc:include type="modules" name="left" style="vt_rounded" />
	   </div></div></div>
	   <?php endif; ?>
	   
	   
       <div id="vt_main_com" class="vt_auto_cols <?php echo $contentwidth." ".$bodyfloat;?>">
       <jdoc:include type="component" />
	   
		 <?php if ($this->countModules('inset2')) : ?>
	     <div id="vt_inset_wapper">
		        
				  <?php if ($this->countModules('inset2')) { ?>
                     <div class="<?php echo $insetmodulewidth; ?> floatleft">
                     <jdoc:include type="modules" name="inset2" style="vt_rounded"  />
                     </div>
                  <?php } ?>
				  <div class="clr"></div>
		 </div>
		 <?php endif; ?>
		 
		 <?php if ($this->countModules('inset1')) : ?>
	     <div id="vt_inset_wapper">
		          <?php if ($this->countModules('inset1')) { ?>
                     <div class="<?php echo $insetmodulewidth; ?> floatleft">
                     <jdoc:include type="modules" name="inset1" style="vt_rounded"  />
                     </div>
                  <?php } ?>
				  
				  <div class="clr"></div>
		 </div>
		 <?php endif; ?>
		 
		 
		 
		 
		 <?php if ($this->countModules('feature')) { ?>
          <div class="vt_headline">
           <jdoc:include type="modules" name="feature" style="xhtml"  />
          </div>
         <?php } ?>
	   </div>
	   
	   
	   
	   <?php if($this->countModules('right')) : ?>
	   <div id="vt_right_bg1" class="<?php echo $rightfloat;?>"><div id="vt_right_bg2">
	   <div id="vt_nav_right" class="vt_auto_cols <?php echo $navright;?>"">
	   <jdoc:include type="modules" name="right" style="vt_rounded" />
	   </div></div></div>
	   <?php endif; ?>
       <div class="clr"></div>
	   <?php endif; ?>
	 </div>
	 <div class="clr"></div>
  </div>
  <div id="vt_main_bottom">
	  <?php if ($this->countModules('bottom1 + bottom2 + bottom3 + bottom4 ')) : ?>
                <div id="vt_bottom_wrapper">
                  <?php if ($this->countModules('bottom1')) { ?>
                     <div class="<?php echo $bottommodulewidth; ?> <?php echo $bottommodsep1; ?> floatleft">
                     <jdoc:include type="modules" name="bottom1" style="vt_xhtml"  />
                     </div>
                  <?php } ?>
                  <?php if ($this->countModules('bottom2')) { ?>
                     <div class="<?php echo $bottommodulewidth; ?> <?php echo $bottommodsep2; ?> floatleft">
                     <jdoc:include type="modules" name="bottom2" style="vt_xhtml"  />
                     </div>
                  <?php } ?>
                  <?php if ($this->countModules('bottom3')) { ?>
                     <div class="<?php echo $bottommodulewidth; ?> <?php echo $bottommodsep3; ?> floatleft">
                     <jdoc:include type="modules" name="bottom3" style="vt_xhtml"  />
                     </div>
                  <?php } ?>	
                  <?php if ($this->countModules('bottom4')) { ?>
                  <div class="<?php echo $bottommodulewidth; ?>  floatleft">
                  <jdoc:include type="modules" name="bottom4" style="vt_xhtml"  />
                  </div>
                  <?php } ?>
			      <div class="clr"></div>
	           </div>
        <?php endif; ?>
	</div>
  </div>
</div>
<div id="vt_main_footer_wapper">
	<div id="vt_main_footer">
	  <?php if ($this->countModules('footer1')) : ?>
                <div id="vt_footer_wrapper">
                  <?php if ($this->countModules('footer1')) { ?>
                     <div class="<?php echo $footermodulewidth; ?> <?php echo $footermodsep1; ?>">
                     <jdoc:include type="modules" name="footer1" style="xhtml"  />
                     </div>
                  <?php } ?>
                  
			      <div class="clr"></div>
	           </div>
        <?php endif; ?>
	</div>
	<div id="vt_footer_menu_copyright">
	    <div id="footer01">Copyright@2012 COFEC All Rights Reserved.</div>
		<div id="footer02">Web design & cms by Vtechcom</div>
	    <div class="clr"></div>
    </div>
  </div>
</div>
 <script type="text/javascript">
    $(window).addEvent('load', function(){	
			(function(){
                var vtMaxHeight1 = 0;                                 
                $ES('#vt_main_inside').each(function( item ){                                 
                    if( item.offsetHeight.toInt()  > vtMaxHeight1 ){
                        vtMaxHeight1 =  item.offsetHeight.toInt();
                    }
                });
                if( vtMaxHeight1 > 0 ) {$ES('#vt_main_inside div.vt_auto_cols').setStyle('height', vtMaxHeight1);}              
            }).delay(100);
			
			(function(){
                var vtMaxHeight2 = 0;                                 
                $ES('#vt_header_wrapper').each(function( item ){                                 
                    if( item.offsetHeight.toInt()  > vtMaxHeight2 ){
                        vtMaxHeight2 =  item.offsetHeight.toInt();
                    }
                });
                if( vtMaxHeight2 > 0 ) {$ES('#vt_header_wrapper div.floatleft').setStyle('height', vtMaxHeight2);}              
            }).delay(100);                                    
    });
</script> 
</body>
</html>
